using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace Microsoft.SharePoint.Portal.ExtendedSearch.Common
{
    internal class Constants
    {
        public const string CAML_QUERY_WEBPARTS = @"
            <?xml version=""1.0"" encoding=""utf-8"" ?>
            <Query>
            <![CDATA[
                <Where>
                    <Eq>
                         <FieldRef Name=""Title"" />
                         <Value Type=""Text"">SearchFacets.webpart</Value>
                    </Eq>
                </Where>
            ]]>
            </Query>
        ";

        public const string WEB_PART_GALLERY_NAME = "Web Part Gallery";
        public const string SEARCH_FACETS_WEBPART_NAME = "Search Facets";
        public const string SEARCH_BREADCRUMBS_WEBPART_NAME = "Search Bread Crumbs";
        public const string SEARCH_BREADCRUMBS_WEBPART_PREFIX = "Search for: ";
        public const string SEARCH_BREADCRUMBS_WEBPART_RESET_BUTTON = "Reset All Facets";
        public const string SEARCH_BREADCRUMBS_WEBPART_RESET_KEYWORD_BUTTON = "Reset Keyword";
        public const string SEARCH_BREADCRUMBS_WEBPART_RESET_ALL_BUTTON = "Reset Search";
        public const int RESULTS_PER_PAGE_MIN = 300;
        public const int RESULTS_PER_PAGE_MAX = 500;
        public const string IMAGES_FOLDER = "~/_layouts/images/";
        internal const string SCRIPT_NAME = "Microsoft.SharePoint.Portal.ExtendedSearch.FacetedSearch.js";
        internal const string UNNAMED_FACET_VALUE = " ---[none]--- ";
        internal const string REGEX_LOOKUP_SPLITTER = @"(?:;#)?\d+;#";
    }
}
